package com.ruoyi.project.configureSystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.configureSystem.mapper.StationPictureMapper;
import com.ruoyi.project.configureSystem.domain.StationPicture;
import com.ruoyi.project.configureSystem.service.IStationPictureService;

/**
 * 站点图片Service业务层处理
 * 
 * @author wangshuo
 * @date 2021-02-10
 */
@Service
public class StationPictureServiceImpl implements IStationPictureService 
{
    @Autowired
    private StationPictureMapper stationPictureMapper;

    /**
     * 查询站点图片
     * 
     * @param id 站点图片ID
     * @return 站点图片
     */
    @Override
    public StationPicture selectStationPictureById(Long id)
    {
        return stationPictureMapper.selectStationPictureById(id);
    }

    /**
     * 查询站点图片列表
     * 
     * @param stationPicture 站点图片
     * @return 站点图片
     */
    @Override
    public List<StationPicture> selectStationPictureList(StationPicture stationPicture)
    {
        return stationPictureMapper.selectStationPictureList(stationPicture);
    }

    /**
     * 新增站点图片
     * 
     * @param stationPicture 站点图片
     * @return 结果
     */
    @Override
    public int insertStationPicture(StationPicture stationPicture)
    {
        return stationPictureMapper.insertStationPicture(stationPicture);
    }

    /**
     * 修改站点图片
     * 
     * @param stationPicture 站点图片
     * @return 结果
     */
    @Override
    public int updateStationPicture(StationPicture stationPicture)
    {
        return stationPictureMapper.updateStationPicture(stationPicture);
    }

    /**
     * 批量删除站点图片
     * 
     * @param ids 需要删除的站点图片ID
     * @return 结果
     */
    @Override
    public int deleteStationPictureByIds(Long[] ids)
    {
        return stationPictureMapper.deleteStationPictureByIds(ids);
    }

    /**
     * 删除站点图片信息
     * 
     * @param id 站点图片ID
     * @return 结果
     */
    @Override
    public int deleteStationPictureById(Long id)
    {
        return stationPictureMapper.deleteStationPictureById(id);
    }
}
